package com.crystal.jcms.ui;


import com.crystal.constant.Constant;
import com.crystal.jcms.shpz.R;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.RelativeLayout;
import android.widget.TextView;

/**
 *	顶部栏
 *
 * 	@author Lean  @date:2014-8-4  
 */
public class HeaderPanelLayout extends RelativeLayout{
	
	private TextView mMiddleTv;
	private TextView mRightTv;

	public HeaderPanelLayout(Context context, AttributeSet attrs) {
		super(context, attrs);
	}
	
	@Override
	protected void onFinishInflate() {
		super.onFinishInflate();
		mMiddleTv=(TextView) findViewById(R.id.middle_text);
		mRightTv=(TextView) findViewById(R.id.right_text);
	}
	
	public void setText(String s)
	{
		if (mMiddleTv!=null) {
			mMiddleTv.setText(s);
		}
	}
	
	public void initHeaderPanel(){
		setText(Constant.STR_FRAGMENT_APPS);
	}
	
}
